Skip to content

Remediate S360 vulnerable registry reference: patch microsoftgraph/powershell image + scheduled refresh#3668

Merged
ramsessanchez merged 1 commit into
mainfrom
gavinbarron/remediate-vulnerable-powershell-image
Jul 21, 2026
Merged

Remediate S360 vulnerable registry reference: patch microsoftgraph/powershell image + scheduled refresh#3668
ramsessanchez merged 1 commit into
mainfrom
gavinbarron/remediate-vulnerable-powershell-image

Conversation

@gavinbarron

Copy link
Copy Markdown
Member

What

Remediates the two S360 Replace Vulnerable Registry Reference action items for the Graph Developer Experiences service (KPI 527fb616-07aa-8198-6419-50d04ef1c2f3; ADO WI 40346 / 45587).

Root cause

The microsoftgraph/powershell image is published only on v* release tags and built FROM mcr.microsoft.com/powershell (floating latest). Between releases the stored digest goes stale and keeps accruing Ubuntu USN + PowerShell CVEs. The scanner flags the same image at two registries (msgraphprodregistry.azurecr.io/public/microsoftgraph/powershell and its mcrprod promotion).

Changes

  • Dockerfile: pin the base to a maintained *-ubuntu-22.04 tag via ARG PS_BASE_TAG (default lts-ubuntu-22.04) instead of floating latest.
  • .azure-pipelines/docker-image-refresh.yml: new image-only pipeline, weekly always: true rebuild that republishes a patched digest without running the full release/pack/sign/PSGallery stages (a scheduled run of sdk-release.yml would be unsafe because Deploy_to_PsGallery is guarded only by succeeded()).

Follow-up (needs prod ACR rights)

  • Register docker-image-refresh.yml as a pipeline in the project and queue it once to publish the patched digest now.
  • Purge the stale manifests: sha256:451a2570...bdcb20 from msgraphprodregistry and sha256:4882f9a2...78d1 from mcrprod.

…powershell image

The image was published only on v* release tags and built FROM mcr.microsoft.com/powershell (floating latest), so the stored digest went stale between releases and accrued Ubuntu USN / PowerShell CVEs (S360 KPI 527fb616-07aa-8198-6419-50d04ef1c2f3, service Graph DevX).

Changes: pin the base to a maintained *-ubuntu-22.04 tag via ARG PS_BASE_TAG (default lts-ubuntu-22.04); add .azure-pipelines/docker-image-refresh.yml, an image-only weekly rebuild (always:true) that republishes a patched digest without running the full release/sign/PSGallery stages.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: d3f8fec7-b00b-46be-ba39-7e1f3e7f7188
@gavinbarron
gavinbarron requested a review from a team as a code owner July 21, 2026 18:14
@ramsessanchez
ramsessanchez merged commit 1bd0320 into main Jul 21, 2026
5 of 8 checks passed
@ramsessanchez
ramsessanchez deleted the gavinbarron/remediate-vulnerable-powershell-image branch July 21, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants